﻿@using Cdn.Blogger.Models;
@if ( TempData["ReportData"] != null)
{
    string classFormat = "alert {0} fade in block-inner";
    var lineData = TempData["ReportData"] as ReportData;
    var lines = lineData.GetLines();
    foreach (var line in lines)
    {
        string mtype = "alert-success";
        switch (line.MessageType)
        {
            case ReportType.Error:
                mtype = "alert-danger";
                break;
            case ReportType.Info:
                mtype = "alert-info";
                break;
            case ReportType.Success:
                mtype = "alert-success";
                break;
            case ReportType.Warning:
                mtype = "alert-warning";
                break;
        }
        string classes = string.Format(classFormat, mtype);
    <div class="@classes">
        <button type="button" class="close" data-dismiss="alert">×</button>
                <i class="icon-cancel-circle"></i>
                @line.Message
    </div>
    }
}